<table width="100%" cellpadding="10" border="0">		
	<tr>
		<td colspan="6" bgcolor="#f0f0f0">
			<table cellpadding="5" border="0" width="100%">
				<tr>
					<td><font style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#0000CC; font-size:14px"><strong><a href="manage_badword.html">Quản Lý Từ Xấu</a></strong></font></td>					
					<td align="right" width="40%" valign="top"><strong>Nội dung:</strong> <input size="60" type="text" name="contents" value="{$contents}"/></td>
					<td width="10%"><input type="submit" name="submit" value="Tìm kiếm" /></td>
				</tr>
				<tr>
					<td>
						<font style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#0000CC; font-size:12px"><strong>KT nội dung:</strong>                       
                    <textarea cols="50" rows="5" name="bad_word">{$bad_word}</textarea>
                    <input type="submit" name="submit" value="Kiểm tra" />
                  </font></td>					
				  <td align="right" width="22%">&nbsp;</td>
					<td width="10%">&nbsp;</td>
				</tr>
				<tr>
					{if $show_bw}
					<td colspan="3">
						<div style="width:200px">
							Badword là:
						</div>
						<table cellpadding=0 cellspacing=5 border=0>
						{foreach from=$show_bw.reason item=show_bw key=key}
						<tr>
						 <td><font color="#FF0000"><b>{$key}</b></font></td>
						 <td><b>{$show_bw}</b></td>
						 </tr>
						{/foreach}
						</table>
					</td>
					{elseif $bad_word}
					<td colspan="3">
						<div style="color:#00CC66; font-weight:bold">"{$bad_word}" không phải là badword</div>
					</td>
					{/if}
			    </tr>
			</table>			
		</td>
	</tr>	
	<tr>
		<td width="3%" align="center"><input onClick="selecte_all_checkbox('BadWordForm');" name="chk_ids" type="checkbox" id="list_item_0" value="1" title="Chọn tất cả"></td>
		<td width="18%" align="center">
			<span>
				<input type="button" onclick="window.location='{$url_add}'" name="add_item" id="add_item" value="Thêm Từ Xấu" title="thêm từ xấu"/>
				<input onclick="if(!confirm('Bạn có chắc muốn xóa không?'))return false;" type="submit" name="del_all" id="del_all" value="Xóa Từ Xấu" title="Xóa tất cả"/>
			</span>			
		</td>
		<td><strong style="margin-left:30px">Nội dung từ xấu</strong></td>	
		<td><strong style="margin-left:30px">Lý do thêm từ xấu</strong></td>		
		<td width="12%" align="center"><strong>Tìm chính xác</strong></td>
		<td width="12%" align="center"><strong>Số ĐT</strong></td>
		<td width="6%" align="center"><strong>Xử lý</strong></td>
	</tr>
	{if $items}
	{foreach from=$items item=items}
	<tr bgcolor="{cycle values='#f0f0f0,#ffffff'}" id="{$items.id}">
		<td align="center"><input name="chk_id[]" type="checkbox" id="list_item_{$items.id}" value="{$items.id}"></td>
		<td colspan="2">{if $items.exact==1}<div style=" color:#FF0000; font-weight:bold">{/if}{$items.contents}{if $items.exact==1}</div>{/if}</td>				
		<td>{if $items.reason}{$items.reason}{/if}</td>				
		<td align="center">{if $items.exact==1}<img src="style/images/register/checked.gif" title="tìm chính xác" />{/if}</td>
		<td align="center">{if $items.is_phone==1}<img src="style/images/register/checked.gif" title="là số điện thoại" />{/if}</td>
		<td> <a href="manage_badword.html?cmd=edit&id={$items.id}">
			<img src="style/images/admin/edit.gif" width="16" title="sửa" />
		  </a>&nbsp;		  
		  <a onclick="if(!confirm('Bạn có chắc muốn xóa không?'))return false;" href="{$items.del_link}">
			<img src="style/images/admin/delete1.gif" title="Xóa" />
		  </a>
		</td>			
	</tr>	
	{/foreach}	
	<tr><td colspan="7"><div class="product-list-paging" style="margin: 0px; padding: 0px;">{$paging}</div></td></tr>
	{else}
	<tr><td align="center" height="50" colspan="7" bgcolor="{cycle values='#f0f0f0,#ffffff'}"><strong>Chưa có thông tin nào cả</strong></td></tr>
	{/if}
</table>